package designpatterns.abstractfactory;

import designpatterns.abstractfactory.intf.Color;
import designpatterns.abstractfactory.intf.Shape;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @description:
 * @author: Lidong
 * @time: 2020/7/21 21:38
 **/
public abstract class AbstractFactory {

    private static final Logger logger = LoggerFactory.getLogger(AbstractFactory.class);

    static {
        logger.info("AbstractFactory...");
    }

    /**
     * 获取颜色
     *
     * @param color 颜色
     * @return Color
     */
    public abstract Color getColor(String color);


    /**
     * 获取形状
     *
     * @param shape 形状
     * @return Shape
     */
    public abstract Shape getShape(String shape);

}
